package com.test.mytag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.PageContext;
import javax.servlet.jsp.tagext.Tag;

public class MyTag implements Tag{


	private PageContext context;
	private Tag parent;
	public MyTag(){
		super();
	}
	
	
	public int doEndTag() throws JspException {

		try {
			context.getOut().write("MyTag Success!!");
		} catch (IOException e) {
			e.printStackTrace();
		}
		return EVAL_PAGE;
	}


	public int doStartTag() throws JspException {

		return SKIP_BODY;
	}


	public Tag getParent() {
		
		return parent;
	}


	public void release() {}

	
	public void setPageContext(PageContext context) {
		this.context = context;
	}

	
	public void setParent(Tag parent) {
		this.parent = parent;
	}

}
